/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package client;

/**
 *
 * @author tomek
 */
public class Talk {
        String person1;
        String person2;
        private String[] fullMessage = new String[100];
        private int count;
        
        public Talk(String p1, String p2, String b) {
            person1 = p1;
            person2 = p2;
            fullMessage[0] = b;
            count = 1;
        }
        
        public void addMessage(String m) {
            fullMessage[count] = m;
        }
        
        public String[] getFullMessages() {
            return fullMessage;
        }
        
        public String getNames() {
            return person1+"-"+person2;
        }
        
    }